\subsection{crypt.h File Reference}
\label{crypt_8h}\index{crypt.h@{crypt.h}}


Crypto declarations.  


{\ttfamily \#include $<$config.h$>$}\par
{\ttfamily \#include $<$sw.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$types.h$>$}\par
{\ttfamily \#include $<$tea.h$>$}\par
\subsubsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define {\bf CRYPT\_\-ALGO\_\-TEA}~0
\begin{DoxyCompactList}\small\item\em Algorithm ID: TEA. \item\end{DoxyCompactList}\item 
\#define {\bf CRYPT\_\-ALGO\_\-SKIPJACK}~1
\begin{DoxyCompactList}\small\item\em Algorithm ID: Skipjack. \item\end{DoxyCompactList}\item 
\#define {\bf CRYPT\_\-ALGO\_\-NEWDESSK}~2
\begin{DoxyCompactList}\small\item\em Algorithm ID: NEWDES-\/SK. \item\end{DoxyCompactList}\item 
\#define {\bf CRYPT\_\-KEY\_\-LEN}~TEA\_\-KEY\_\-LEN
\begin{DoxyCompactList}\small\item\em Length of key in octets. \item\end{DoxyCompactList}\item 
\#define {\bf CRYPT\_\-BLOCK\_\-LEN}~TEA\_\-BLOCK\_\-LEN
\begin{DoxyCompactList}\small\item\em Length of cipher block in octets. \item\end{DoxyCompactList}\item 
\#define {\bf crypt\_\-enc}(v, k)~tea\_\-enc(({\bf iu32}$\ast$)(v),({\bf iu32}$\ast$)(k))
\begin{DoxyCompactList}\small\item\em Single block encryption function. \item\end{DoxyCompactList}\item 
\#define {\bf crypt\_\-dec}(v, k)~tea\_\-dec(({\bf iu32}$\ast$)(v),({\bf iu32}$\ast$)(k))
\begin{DoxyCompactList}\small\item\em Single block decryption function. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Crypto declarations. \begin{DoxyParagraph}{Id:}
\doxyref{crypt.h}{p.}{crypt_8h},v 1.1 2003/03/30 12:42:21 m Exp 
\end{DoxyParagraph}


\subsubsection{Define Documentation}
\index{crypt.h@{crypt.h}!CRYPT\_\-ALGO\_\-NEWDESSK@{CRYPT\_\-ALGO\_\-NEWDESSK}}
\index{CRYPT\_\-ALGO\_\-NEWDESSK@{CRYPT\_\-ALGO\_\-NEWDESSK}!crypt.h@{crypt.h}}
\paragraph[{CRYPT\_\-ALGO\_\-NEWDESSK}]{\setlength{\rightskip}{0pt plus 5cm}\#define CRYPT\_\-ALGO\_\-NEWDESSK~2}\hfill\label{crypt_8h_a3417264ca23998ebd98918e67f124ca5}


Algorithm ID: NEWDES-\/SK. 

\index{crypt.h@{crypt.h}!CRYPT\_\-ALGO\_\-SKIPJACK@{CRYPT\_\-ALGO\_\-SKIPJACK}}
\index{CRYPT\_\-ALGO\_\-SKIPJACK@{CRYPT\_\-ALGO\_\-SKIPJACK}!crypt.h@{crypt.h}}
\paragraph[{CRYPT\_\-ALGO\_\-SKIPJACK}]{\setlength{\rightskip}{0pt plus 5cm}\#define CRYPT\_\-ALGO\_\-SKIPJACK~1}\hfill\label{crypt_8h_a17a499eabb156a7102f79492662e8cae}


Algorithm ID: Skipjack. 

\index{crypt.h@{crypt.h}!CRYPT\_\-ALGO\_\-TEA@{CRYPT\_\-ALGO\_\-TEA}}
\index{CRYPT\_\-ALGO\_\-TEA@{CRYPT\_\-ALGO\_\-TEA}!crypt.h@{crypt.h}}
\paragraph[{CRYPT\_\-ALGO\_\-TEA}]{\setlength{\rightskip}{0pt plus 5cm}\#define CRYPT\_\-ALGO\_\-TEA~0}\hfill\label{crypt_8h_aa6d5db38f2e246b357efddb439ce6bff}


Algorithm ID: TEA. 

\index{crypt.h@{crypt.h}!CRYPT\_\-BLOCK\_\-LEN@{CRYPT\_\-BLOCK\_\-LEN}}
\index{CRYPT\_\-BLOCK\_\-LEN@{CRYPT\_\-BLOCK\_\-LEN}!crypt.h@{crypt.h}}
\paragraph[{CRYPT\_\-BLOCK\_\-LEN}]{\setlength{\rightskip}{0pt plus 5cm}\#define CRYPT\_\-BLOCK\_\-LEN~TEA\_\-BLOCK\_\-LEN}\hfill\label{crypt_8h_a43b1d04245c8e15c46757997a948488d}


Length of cipher block in octets. 



Referenced by auth\_\-createVerifyCryptogram(), auth\_\-getChallenge(), cmd\_\-extAuth(), cmd\_\-getChallenge(), and cmd\_\-intAuth().

\index{crypt.h@{crypt.h}!crypt\_\-dec@{crypt\_\-dec}}
\index{crypt\_\-dec@{crypt\_\-dec}!crypt.h@{crypt.h}}
\paragraph[{crypt\_\-dec}]{\setlength{\rightskip}{0pt plus 5cm}\#define crypt\_\-dec(
\begin{DoxyParamCaption}
\item[{}]{v, }
\item[{}]{k}
\end{DoxyParamCaption}
)~tea\_\-dec(({\bf iu32}$\ast$)(v),({\bf iu32}$\ast$)(k))}\hfill\label{crypt_8h_acf91dd768c8cafdd5ff51dffe52a23f4}


Single block decryption function. 



Referenced by auth\_\-createVerifyCryptogram().

\index{crypt.h@{crypt.h}!crypt\_\-enc@{crypt\_\-enc}}
\index{crypt\_\-enc@{crypt\_\-enc}!crypt.h@{crypt.h}}
\paragraph[{crypt\_\-enc}]{\setlength{\rightskip}{0pt plus 5cm}\#define crypt\_\-enc(
\begin{DoxyParamCaption}
\item[{}]{v, }
\item[{}]{k}
\end{DoxyParamCaption}
)~tea\_\-enc(({\bf iu32}$\ast$)(v),({\bf iu32}$\ast$)(k))}\hfill\label{crypt_8h_a2b72079265df1125bb812c9c16fbe801}


Single block encryption function. 



Referenced by auth\_\-createVerifyCryptogram(), and hal\_\-rnd\_\-getBlock().

\index{crypt.h@{crypt.h}!CRYPT\_\-KEY\_\-LEN@{CRYPT\_\-KEY\_\-LEN}}
\index{CRYPT\_\-KEY\_\-LEN@{CRYPT\_\-KEY\_\-LEN}!crypt.h@{crypt.h}}
\paragraph[{CRYPT\_\-KEY\_\-LEN}]{\setlength{\rightskip}{0pt plus 5cm}\#define CRYPT\_\-KEY\_\-LEN~TEA\_\-KEY\_\-LEN}\hfill\label{crypt_8h_aebb6985d9f62e300c6ca9ef11218a4b3}


Length of key in octets. 

